package com.jsjosem.aftersales.enums;

import cn.hutool.core.util.StrUtil;

public enum EventTypeEnum {
    UN_DISTRIBUTE("待分配"),
    UN_FINISH("未完成"),
    FINISH("已完成"),
    ;

    EventTypeEnum(String desc) {
        this.desc = desc;
    }

    private final String desc;

    public String getDesc() {
        return desc;
    }

    public static EventTypeEnum getEnum(String desc) {
        for (EventTypeEnum value : values()) {
            if (StrUtil.equals(desc, value.desc)) {
                return value;
            }
        }
        return null;
    }
}
